package com.lzh.redisdemo.pojo.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Classname DateVo
 * @Description DateVo
 * @Date 2021/11/4 16:21
 * @Created by liuzihao
 */
public class DateVo {

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }
}
